import datetime
# import tushare
import tushare as t1
import mail

print(t1.__version__)

# import tushare as t1
t1.set_token('15ceb9f0738a78141878b3a3a22beed3e64c2b67ec2efd3d857f4ed0')
ts=t1.pro_api()


SH_PeArray = ts.index_dailybasic(ts_code='000001.SH', fields='trade_date,pe')

print(SH_PeArray)